class MockLocationBean {
  MockLocationBean({
    this.common,
    this.mockLocation,
  });

  MockLocationBean.fromJson(dynamic json) {
    common = json['common'] != null ? Common.fromJson(json['common']) : null;
    mockLocation = json['mock_location'] != null
        ? MockLocation.fromJson(json['mock_location'])
        : null;
  }
  Common? common;
  MockLocation? mockLocation;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (common != null) {
      map['common'] = common?.toJson();
    }
    if (mockLocation != null) {
      map['mock_location'] = mockLocation?.toJson();
    }
    return map;
  }
}

class MockLocation {
  MockLocation({
    this.lat,
    this.lng,
  });

  MockLocation.fromJson(dynamic json) {
    lat = json['lat'];
    lng = json['lng'];
  }
  num? lat;
  num? lng;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['lat'] = lat;
    map['lng'] = lng;
    return map;
  }
}

class Common {
  Common({
    this.useNetwork,
    this.useGps,
    this.frequencyMs,
  });

  Common.fromJson(dynamic json) {
    useNetwork = json['useNetwork'];
    useGps = json['useGps'];
    frequencyMs = json['frequency_ms'];
  }
  bool? useNetwork;
  bool? useGps;
  num? frequencyMs;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['useNetwork'] = useNetwork;
    map['useGps'] = useGps;
    map['frequency_ms'] = frequencyMs;
    return map;
  }
}
